<template>
  <svg v-html="svgicon[name]" @click="click">
  </svg>
</template>

<script>
import svgicon from "../utils/icons";
export default {
  props: ["name"],
  data() {
    return {
      svgicon,
    };
  },
  methods:{
    click(e){
      return this.$emit('click', e)
    }
  }
};
</script>